package com.hqq.action.inherit.strategy;

/**
 * Minus
 * Created by heqianqian on 2017/3/11.
 */
public class Minus extends AbstractCalculator implements ICalculator {
    @Override
    public int calculate(String exp) {
        int array[] = split(exp,"-");
        return array[0]-array[1];
    }
}
